package com.xxh.dasongapp.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xxh.dasongapp.common.entity.User;
import com.xxh.dasongapp.common.entity.UserRole;
import com.xxh.dasongapp.mapper.UserMapper;
import com.xxh.dasongapp.mapper.UserRoleMapper;
import com.xxh.dasongapp.service.UserRoleService;
import com.xxh.dasongapp.service.UserService;
import org.springframework.stereotype.Service;


@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> implements UserRoleService {


    @Override
    public UserRole getByUserId(String userId) {
        return lambdaQuery().eq(UserRole::getUserId,userId)
                .one();
    }
}
